package io.xccit.race.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.xccit.common.core.domain.BaseEntity;

/**
 * 赛制管理对象 race_competition_rules
 * 
 * @author ywx
 * @date 2025-10-10
 */
public class RaceCompetitionRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 赛制ID */
    private Long id;

    /** 赛制（1团队赛 2个人赛） */
    private Integer competitionType;

    /** 比赛类型 */
    private String matchType;

    /** 最大人数 */
    private Integer maxParticipants;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCompetitionType(Integer competitionType) 
    {
        this.competitionType = competitionType;
    }

    public Integer getCompetitionType() 
    {
        return competitionType;
    }
    public void setMatchType(String matchType) 
    {
        this.matchType = matchType;
    }

    public String getMatchType() 
    {
        return matchType;
    }
    public void setMaxParticipants(Integer maxParticipants) 
    {
        this.maxParticipants = maxParticipants;
    }

    public Integer getMaxParticipants() 
    {
        return maxParticipants;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("competitionType", getCompetitionType())
            .append("matchType", getMatchType())
            .append("maxParticipants", getMaxParticipants())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
